package com.dc.pay.callback.template.factory;

import com.dc.core.utils.SpringContextUtils;
import com.dc.pay.callback.template.AbstractPayCallbackTemplate;

/**
 * @author: KEYD
 * @Date: 2020/1/13 16:26
 * @Desc: , 获取具体实现的模板工厂方案
 */
public class TemplateFactory {

    public static AbstractPayCallbackTemplate getPayCallbackTemplate(String beanId) {
        return (AbstractPayCallbackTemplate) SpringContextUtils.getBean(beanId);
    }

}
